package com.huawei;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Description: HJ105 记负均正II
 * Float如何保留几位小数！！
 *
 * @author weiruibai.vendor
 * Date: 2022/9/2 10:18
 */
public class HJ105 {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int negativeCount = 0;
        int positiveSum = 0;
        int n = 0;
        while ((str = reader.readLine()) != null && str.length() > 0) {
            int num = Integer.parseInt(str);
            if (num < 0) {
                negativeCount++;
            } else {
                positiveSum += num;
                n++;
            }
        }
        System.out.println(negativeCount);
        System.out.printf("%.1f\n", (float) positiveSum / n);// 结果保留一位小数

        System.out.printf("%.2f\n", (float) positiveSum / n);// 结果保留二位小数
    }
}
